package com.liangtian.mdm.material.common.constant;

public class Constants {
    public static final String APPROVER_RESULT = "审批结论";
    public static final String OPER_TJ = "TJ"; // 提交TJ
    public static final String OPER_BG = "BG";// 变更BG
    public static final String OPER_QY = "QY";// 启用QY
    public static final String OPER_TY = "TY";// 停用TY
    public static final String OPER_SC = "SC";// 删除SC

    public static final String OPER_TJ_NAME = "申请"; // 提交TJ
    public static final String OPER_BG_NAME = "变更";// 变更BG
    public static final String OPER_QY_NAME = "活动";// 启用QY
    public static final String OPER_TY_NAME = "冻结";// 停用TY
    public static final String OPER_SC_NAME = "删除";    //	删除SC

    public static final String STATUSEMPT = "";// 送审
    public static final String BEFORAPPROVE = "0";// 送审
    public static final String DOAPPROVE = "0";// 待审
    public static final String APPROVEPASS = "1";// 通过
    public static final String APPROVEIGNORE = "2";// 驳回
    public static final String HOME_IOC = "HOME_IOC";// 门户页图片
    public static final String ENERGYACCNT = "MES_ENERGY_ACCNT";// 能源核算单元
    public static final String ENERGYPOINT = "MES_ENERGY_POINT";// 能源核算节点
    public static final String PLATFORMFACTORY = "MES_PLATFORM_FACTORY";// 进出厂点
    public static final String PLATFORM = "MES_PLATFORM";// 装卸台
    public static final String STORAGECODE = "MES_STORAG_CODE";// 储罐
    public static final String STORAGECODECC = "MES_STORAG_CODECC";// 装置缓存
    public static final String STORAGE = "MES_STORAGE";// 罐区
    public static final String UNITENERGY = "MES_UNIT_ENERGY";// 能源装置
    public static final String UNITPROCESSLINE = "MES_UNIT_PROCESS_LINE";// 装置侧线
    public static final String UNITPROCESS = "MES_UNIT_PROCESS";// 生产装置
    public static final String WAREHOUSEAREA = "MES_WAREHOUSE_AREA";// 库位
    public static final String WAREHOUSE = "MES_WAREHOUSE";// 仓库
    public static final String INDICATORS = "INDICATORS_MATTER";// 数据指标
    public static final String CUSTOM = "CODE_CUSTOM";// 客户
    public static final String CODESUPPLIER = "CODE_SUPPLIER";// 供应商
    public static final String CODESTAFF = "CODE_STAFF";// 员工
    public static final String CODENBDW = "CODE_NBDW";// 内部单位
    public static final String MODEL = "AM_MODEL";// 模型定义
    /*********************** 榆林接收集团主数据开始 ***********************************/

    public static final String GROUP_MATERIALCATEGORY = "GROUP_MATERIALCATEGORY"; // --1.物资分类
    public static final String GROUP_MATERIALCODE = "GROUP_MATERIALCODE"; // --2.物资编码
    public static final String GROUP_MEASUREUNIT = "GROUP_MEASUREUNIT"; // --3.计量单位
    public static final String GROUP_ORG = "GROUP_ORG";                                            //--4.组织机构
    public static final String GROUP_HR = "GROUP_HR";                                            //--5.人员
    public static final String GROUP_CUSTOMER = "GROUP_CUSTOMER"; // --6.客户
    public static final String GROUP_SUPPLIER = "GROUP_SUPPLIER"; // --7.供应商
    public static final String GROUP_BANK = "GROUP_BANK"; // --8.银行
    public static final String GROUP_FINANCE_COMPANY = "GROUP_FINANCE_COMPANY"; // --9.1财务主数据-财务公司
    public static final String GROUP_FINANCE_COSTCENTER = "GROUP_FINANCE_COSTCENTER"; // --9.2财务主数据-成本中心
    public static final String GROUP_FINANCE_MAINACCOUNT = "GROUP_FINANCE_MAINACCOUNT"; // --9.3财务主数据-财务主科目
    public static final String GROUP_FINANCE_CHILDCCOUNT = "GROUP_FINANCE_CHILDCCOUNT"; // --9.4财务主数据-财务子科目
    public static final String GROUP_FINANCE_PRODUCT = "GROUP_FINANCE_PRODUCT"; // --9.5财务主数据-产品段
    public static final String GROUP_FINANCE_PROJECT = "GROUP_FINANCE_PROJECT"; // --9.6财务主数据-项目段
    public static final String GROUP_FINANCE_CONTRACT = "GROUP_FINANCE_CONTRACT"; // --9.7财务主数据-合同段
    public static final String GROUP_FINANCE_PRODUCELINK = "GROUP_FINANCE_PRODUCELINK"; // --9.8财务主数据-生成环节
    public static final String GROUP_FINANCE_CURRENTUNIT = "GROUP_FINANCE_CURRENTUNIT"; // --9.9财务主数据-往来单位

    /*********************** 榆林接收集团主数据结束 ***********************************/
    /*********************** 榆林物资分类 ***********************************/
    public static final String YL_TYPE = "YL_TYPE";    //--分类表的标识

    /*********************** 高级查询开始 ***********************************/
    public static final String CODETYPE = "CODE_TYPE";// 代码体系表----对应菜单-----代码体系查询
    public static final String INDICATORSTHEME = "INDICATORS_THEME";// 数据指标主题树----对应菜单-----主题树查询
    public static final String INDICATORSMATTER = "INDICATORS_METER";// 数据指标----对应菜单-----数据指标查询
    public static final String CODESYSTEM = "CODE_SYSTEM";// 代码体系表----对应菜单-----系统应用代码情况
    public static final String CODESTATIONPORT = "CODE_STATIONPORT";// 站港信息表----对应菜单-----站港信息代码查询
    public static final String FIXEDTYPE = "CODE_FIXED_TYPE";// 固定资产分类
    public static final String DEMANDPROB = "DEMAND_PROB";// 需求与问题
    public static final String DEMANDCJWT = "DEMAND_WENTI";// 常见问题
    public static final String WEBEXAM = "WEBEXAM";// 网上考试
    public static final String WBDW = "CODE_WBDW_BASE";// 外部单位
    public static final String FORUMS = "CMS_FORUMS";// 栏目
    public static final String FYP_RHY = "FYP_RHY";// 润滑油润滑脂
    public static final String CODENONOILCOMMODITY = "CODE_NONOIL_COMMODITY"; // 非油品-商品查询
    public static final String CODENONOILBRANDS = "CODE_NONOIL_BRANDS"; // 非油品-商品品牌查询
    public static final String CODENONOILCATEGORY = "CODE_NONOIL_CATEGORY"; // 非油品-商品类别查询
    /*********************** 高级查询结束 ***********************************/

    /*********************** 日志操作 ***********************************/
    public static final String INDICATORSPROPERTY = "INDICATORS_PROPERTY_VIEW";// 指标属性
    public static final String SYSUSER = "SYS_USER";// 用户
    public static final String SYSROLE = "SYS_ROLE";// 角色
    public static final String SYSMENU = "SYS_MENU";// 菜单
    public static final String SYSUNITPERMISSION = "SYS_UNIT_PERMISSION";// 单位权限
    public static final String SYSFORUMSPERMISSION = "SYS_FORUMS_PERMISSION";// 文档权限
    public static final String SYSINDICATORSTHEME = "SYS_INDICATORS_THEME";// 主题权限
    public static final String SYSPARAMETER = "SYS_PARAMETER";// 系统参数
    public static final String SYSCODE = "SYS_CODE";// 数据字典
    /*********************** 日志操作 ***********************************/

    /*********************** 物料 ***********************************/
    public static final String WLLB = "WL_LB";// 物料类别
    public static final String WLLBCGLX = "WL_LB_CGLX";// 物料类别采购类型
    public static final String WLLBMB = "WL_LBMB";// 物料类别模板
    public static final String WLLBMBTZL = "WL_LBMB_TZL";// 物料类别模板特征量
    public static final String STDTZL = "STD_TZL";// 公共特征量
    public static final String WLWLDR = "WL_WL_DR";// 导入表物料
    public static final String WLWLYS = "WL_WL_YS";// 导入表物料
    public static final String WLWL = "WL_WL";// 正式物料
    public static final String WLWLDRAUTO = "WL_WL_DR_AUTO";// 导入表物料自动配码
    public static final String WLCPSCM = "WL_CPSCM";// 上层代码

    public static final String CODEACCOUNT = "CODE_ACCOUNT";// 会计科目
    public static final String CODEBANK = "CODE_BANK";// 银行
    public static final String STATIONPORT = "CODE_STATIONPORT";// 站港信息

    public static final String CMSDOC = "CMS_CONTENT";// 文档
    public static final String CMSLINK = "CMS_LINKEDURL";// 文档
    public static final String SERVICEMDM = "CODE_SERVICEMDM";// 服务主数据
    public static final String FIXEDEQUIPMENT = "CODE_FIXED_EQUIPMENT";// 固定资产
    public static final String RHYRHZ = "FYP_RHY";// 润滑油润沪指
    public static final String SCWL = "MES_SCWL";// 生产物料
    public static final String OPLOG = "OPLOG";// 操作日志
    public static final String DISLOG = "DISLOG";// 分发日志
    public static final String COSTCENTER = "CODE_COSTCENTER";// 成本中心

    public static final String BASENBDW = "BASE_NBDW";
    /*********************** 中外运内部单位 ***********************************/
    public static final String ZWYNBDW = "ZWY_NBDW";// 节能内部单位

    /*********************** 内部单位 ***********************************/
    public static final String NBDW = "NBDW";// 内部单位
    public static final String NBDW1 = "NBDW1";// 内部单位数据类型1
    public static final String NBDW2 = "NBDW2";// 内部单位数据类型2
    public static final String NBDW3 = "NBDW3";// 内部单位数据类型3
    public static final String NBDW4 = "NBDW4";// 内部单位数据类型4
    public static final String NBDW5 = "NBDW5";// 内部单位数据类型5
    public static final String NBDW6 = "NBDW6";// 内部单位数据类型6
    public static final String NBDW7 = "NBDW7";// 内部单位数据类型7
    public static final String NBDW8 = "NBDW8";// 内部单位数据类型8
    public static final String NBDW9 = "NBDW9";// 内部单位数据类型9
    public static final String NBDW10 = "NBDW10";// 内部单位数据类型10
    public static final String NBDW11 = "NBDW11";// 内部单位数据类型11

    /*********************** 工程材料 ***********************************/
    public static final String GCCL = "GCCL_MDM";// 工程材料

    /*********************** 中核物料 ***********************************/
    public static final String ZH_MATERIAL = "ZH_MATERIAL";
    public static final String ZH_TYPE = "ZH_TYPE";    //--分类表的标识
    /*********************** 中核供应商 ***********************************/
    public static final String ZH_SUPPLIER = "ZH_SUPPLIER";

    /*********************** 核建组织机构 ***********************************/
    public static final String CNEC_NBDW = "CNEC_NBDW";// 核建组织机构
    /*********************** 核建人员 ***********************************/
    public static final String CNEC_STAFF = "CNEC_STAFF";// 核建人员
    /*********************** 外部单位 ***********************************/
    public static final String OUTUNIT = "CODE_OUTUNIT";
    /*********************** 投资项目主数据 ***********************************/
    public static final String CODE_PROJECT = "CODE_PROJECT";
    /*********************** 项目段主数据 ***********************************/
    public static final String CODE_PROJECT_XMD = "CODE_PROJECT_XMD";

    /*********************** 标识项目名称的常量，用于配码反射 ***************/
    public static final String SYSYULIN = "YULIN";
    public static final String SYSID = "8F0B369A72F6432EB339927BFFC4FB3E";

    public static final int DATAIDTYPE = 0;
    public static final int INSTANCEIDTYPE = 1;


    public static String errMes(long errCode2, String bussinessId) {
        StringBuffer errMsg = new StringBuffer();
        long errCode = errCode2;
        if (errCode == 600001) {
            errMsg.append(bussinessId + "：未知原因");
        } else if (errCode == 600002) {
            errMsg.append(bussinessId + "：模版不存在");
        } else if (errCode == 600003) {
            errMsg.append(bussinessId + "：工作流缺少匹配参数");
        } else if (errCode == 600004) {
            errMsg.append(bussinessId + "：任务已完成");
        } else if (errCode == 600005) {
            errMsg.append(bussinessId + "：应该服务节点参数有误");
        } else if (errCode == 600006) {
            errMsg.append(bussinessId + "：没有配置好下一级审批人!");
        } else if (errCode == 600007) {
            errMsg.append(bussinessId + "：流程实例ID不存在");
        } else if (errCode == 600008) {
            errMsg.append(bussinessId + "：任务不存在");
        } else if (errCode == 600009) {
            errMsg.append(bussinessId + "：该用户没有任务");
        } else if (errCode == 600010) {
            errMsg.append(bussinessId + "：删除流程失败");
        } else if (errCode == 700001) {
            errMsg.append(bussinessId + "：未传入申请人参数");
        } else if (errCode == 700002) {
            errMsg.append(bussinessId + "：未传入任务ID");
        } else if (errCode == 700003) {
            errMsg.append(bussinessId + "：操作数据库异常");
        } else if (errCode == 3000) {
            errMsg.append(bussinessId + "：其他");
        } else if (errCode == 2000) {
            errMsg.append(bussinessId + "：流程失败");
        } else if (errCode == 2001) {
            errMsg.append(bussinessId + "：无法启动未部署的流程");
        } else if (errCode == 2002) {
            errMsg.append(bussinessId + "：启动流程其他异常");
        } else if (errCode == 2003) {
            errMsg.append(bussinessId + "：任务不存在");
        } else if (errCode == 2004) {
            errMsg.append(bussinessId + "：停止异常其他异常");
        } else if (errCode == 2005) {
            errMsg.append(bussinessId + "：任务处理异常");
        } else if (errCode == 2006) {
            errMsg.append(bussinessId + "：任务状态错误");
        } else if (errCode == 2007) {
            errMsg.append(bussinessId + "：审批人不存,初始配置的审批人不存在");
        } else if (errCode == 2008) {
            errMsg.append(bussinessId + "：审批人不存在,外部数据无符合条件的业务工作流配置项");
        } else if (errCode == 2009) {
            errMsg.append(bussinessId + "：设置事前委托失败");
        } else if (errCode == 2010) {
            errMsg.append(bussinessId + "：取消事前委托失败");
        } else if (errCode == 2011) {
            errMsg.append(bussinessId + "：加签失败");
        } else if (errCode == 2012) {
            errMsg.append(bussinessId + "：迁移失败");
        }
        return errMsg.toString();
    }

    // public final static String
    // FLOW_WSDL_URL="http://10.1.18.98:7077/workflow/webService/ActivitiWebService?wsdl";
    // public final static String
    // FLOW_WSDL_URL="http://192.168.0.161:8080/workflow/webService/ActivitiWebService?wsdl";
    // public final static String
    // FLOW_WSDL_URL="http://10.5.88.189:7001/workflow/webService/ActivitiWebService?wsdl";
    // 工作流测试系统 98 7077
    // public final static String FLOW_WSDL_URL =
    // "http://10.1.18.98:7077/workflow/webService/ActivitiWebService?wsdl";
    // public final static String
    // FLOW_WSDL_URL="http://10.230.98.25:8080/workflow/webService/ActivitiWebService?wsdl";
    // http://10.238.18.58:8080/workflow/webService/ActivitiWebService?wsdl
    // http://192.168.0.164:7001/proxyWorkFlowService?wsdl

}
